<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="from" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>

<style>
    #jsonData {
        border: none;
        width: 100%;
        overflow: auto;
        word-break: break-all;
        height: -webkit-fill-available;
        text-align: left;
    }
    input{
        padding: 8px;
    }
</style>
<form action="menuSubmit" method="post">
    <input type="text" style="width: 100%" name="accToken" placeholder="填写token">

    <textarea id="jsonData" name="menujson">
        ${menu}
    </textarea>
    <button type="submit" class="btn">提交</button>
</form>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
        integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
        crossorigin="anonymous"></script>
<script>
    <%--var result = JSON.stringify(JSON.parse(${menu}), null, 4);--%>
    <%--$('#josnData').text("${menu}");--%>
</script>